# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class WorkerItem(scrapy.Item):
    """
    'img_url': img_url, # 图片链接
    'width': x_size,  # 尺寸x
    'height': y_size,   # 尺寸y
    'url': url,     # 图片来源文章url
    'title': title,     # 文章标题
    'content': content,     # 文章内容
    'img_path': img_path,       # 图片本地保存路径
    'img_format': img_format,       # 图片格式    1：jpg, 2：png, 3：gif, 4：tif, 5：bmp
    'clue_id':clue_id,      # clue_id
    'task_id':task_id,      # task_id
    'company_id':company_id,        # company_id
    'is_cover': 0,
    'clue_name':clue_name,  # clue_name
    'pic_size':int(x_size)*int(y_size), # 图片尺寸长×宽
    'size': file_size  # 文件大小(单位: KB)
    """
    img_url = scrapy.Field()
    width = scrapy.Field()
    height = scrapy.Field()
    url = scrapy.Field()
    title = scrapy.Field()
    content = scrapy.Field()
    img_path = scrapy.Field()
    img_format = scrapy.Field()
    clue_id = scrapy.Field()
    task_id = scrapy.Field()
    company_id = scrapy.Field()
    is_cover = scrapy.Field()
    clue_name = scrapy.Field()
    pic_size = scrapy.Field()
    size = scrapy.Field()
    status = scrapy.Field()